class ChatLog extends BroadcastHandler;

function PreBeginPlay()
{
	Level.Game.BroadcastHandler.RegisterBroadcastHandler(Self);
}

function BroadcastText( PlayerReplicationInfo SenderPRI, PlayerController Receiver, coerce string Msg, optional name Type )
{
	local string Prefix;
	if (Receiver.PlayerReplicationInfo == SenderPRI)
	{
		Log("CLog"$"+^&"$Level.Title$"+^&"$KFGameType(Level.Game).WaveNum$"+^&"$Level.Year$"."$Level.Month$"."$Level.Day$"+^&"$Level.Hour$":"$Level.Minute$":"$Level.Second$"+^&"$SenderPRI.PlayerName$"+^&"$Msg);
	}
	Prefix=Left( Msg, 9 );
	if(Prefix~="FlameInfo")
	{
		//Log("Hihihi"@Msg);
	}
	else
	{
		Super.BroadcastText(SenderPRI, Receiver, Msg, Type);
	}
}

function bool AcceptBroadcastText( PlayerController Receiver, PlayerReplicationInfo SenderPRI, out string Msg, optional name Type )
{
	//Log("ChatLog.AcceptBroadcastText"@Msg);
	return Super.AcceptBroadcastText(Receiver, SenderPRI, Msg, Type);
}

/* function BroadcastLocalized( Actor Sender, PlayerController Receiver, class<LocalMessage> Message, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject )
{
	//Log("bl="@Message);
	//Super.BroadcastLocalized(Sender, Receiver, Message, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);
} */

defaultproperties
{
}
